from django.urls import path
from book.views import set_session, get_session, jd
from book.views import JdLoginView,CenterView

urlpatterns = [
    path('set_session/', set_session),
    path('get_session/', get_session),

    path('jd/', jd),

    # 类视图的url
    # path 的第二个参数是: 函数名
    path('login/', JdLoginView.as_view()),
    path('center/', CenterView.as_view())
]


# class Person:
#
#     # 对象方法/实例方法 实例对象方法
#     def eat(self):
#         pass
#
#     # 类方法
#     @classmethod
#     def play(cls):
#         pass
#
#     # 静态方法
#     @staticmethod
#     def sleep():
#         pass
#
#
# p = Person()
# p.eat()
#
# Person.play()
#
# Person.sleep()
